/**
 * 
 */
package com.common.distributed.sharding.algorithm.client;

import com.common.distributed.sharding.algorithm.support.TableBean;
import com.common.distributed.sharding.spring.schema.DataBaseSchema;
import com.common.distributed.sharding.spring.schema.DistributedClientSchema;

/**
 * @author liubing
 *
 */
public interface IDistributedClient {
	
	/**
	 * 获取分库分表选择的数据库
	 * @param distributedClientSchema
	 * @param tablenamefield
	 * @return
	 */
	public DataBaseSchema getShardDataSoure(DistributedClientSchema distributedClientSchema,String tablenamefield);

	/**
	 * 获取分库分表选择的表名
	 * @param distributedClientSchema
	 * @param tablenamefield
	 * @param databsename
	 * @return
	 */
	public TableBean getShardTableName(DistributedClientSchema distributedClientSchema,String tablenamefield,String databsename);
}
